<?php

require_once '../include/common.inc.php';

if (!checkAdmin()) {
    header("LOCATION:index.php");
    exit;
}

$menu_index = 4;
$page_title = 'JANSEN';
$guide_message = 'System | Webmaster Email';
$alert_message = '';
$email = '';

getMyParam('action');
getMyParam('webmaster_email');
getMyParam('webmaster_name');

if ($action == "update") {
    setSystemValue('webmaster_email', $webmaster_email);
    setSystemValue('webmaster_name', $webmaster_name);
    $alert_message = 'update succeed.';
}

$system_ary = getSystemValue("");
$out_email = $system_ary['webmaster_email'];
$out_name = $system_ary['webmaster_name'];

$debug = 1;
debuginfo();

include_once(JANSEN_ROOT . 'admin/menu_list.php');
require_once PrintEot('a_header');
require_once PrintEot('a_s_emailset');
require_once PrintEot('a_footer');

?>